package com.cli.apisdk.controller;

import com.cli.apisdk.checkpoint.mgmtapi.SessionManagement;
import com.cli.apisdk.checkpoint.model.LoginRequest;
import com.cli.apisdk.checkpoint.service.SessionManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: xiongmin
 * @since create by 2022/7/22 16:08
 */
@RestController
@RequestMapping("/cp")
public class CheckPointMgmtController {

    @Autowired
    private SessionManagementService sessionManagementService;

    @GetMapping("")
    public String login() {
        String login = sessionManagementService.login();
        return login;
    }
}
